﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Master/Admin.Master" AutoEventWireup="true" ValidateRequest="false"
    CodeBehind="EditGrowthCourse.aspx.cs" Inherits="Qianwei.Web.Admins.EditGrowthCourse" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script type="text/javascript" charset="utf-8" src="../ueditor/editor_config.js"></script>
    <script type="text/javascript" charset="utf-8" src="../ueditor/editor_ui_all.js"></script>
    <link rel="stylesheet" type="text/css" href="../ueditor/themes/default/ueditor.css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table width="99%" border="0" cellpadding="0" cellspacing="0" class="CContent">
        <tr>
            <th class="tablestyle_title">
                管理成长历程
            </th>
        </tr>
        <tr>
            <td class="CPanel">
                <table border="0" cellpadding="0" cellspacing="0" style="width: 100%">
                    <tr>
                        <td width="100%">
                            <fieldset style="height: 100%;">
                                <legend>成长历程</legend>
                                <table border="0" cellpadding="2" cellspacing="1" style="width: 100%">
                                    <tr>
                                        <td align="right">
                                            内容:
                                        </td>
                                        <td>
                                            <textarea id="txtContent" rows="5" cols="80">
                                            </textarea>
                                            <asp:HiddenField ID="hf_contentinit" runat="server" />
                                            <asp:HiddenField ID="hfContent" runat="server" />
                                            <span class="red">*</span>
                                        </td>
                                    </tr>
                                </table>
                                <br />
                            </fieldset>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td colspan="2" align="center" height="50px">
                <asp:Button ID="btnSave" runat="server" CssClass="button" Text="保存" OnClientClick="return SetContent();"
                    OnClick="btnSave_Click" />
            </td>
        </tr>
    </table>
    <script type="text/javascript">
        $("#txtContent").val($("#<%=hf_contentinit.ClientID %>").val());
        var editor = new baidu.editor.ui.Editor({
            UEDITOR_HOME_URL: '../ueditor/',
            iframeCssUrl: '../ueditor/themes/default/iframe.css'
        });
        editor.render('txtContent');
        function SetContent() {
            $("#<%=hfContent.ClientID %>").val(editor.getContent());
        }
    </script>
</asp:Content>
